{% extends "base.html" %}
{% load static %}

{% block headjs %}

{% endblock %}

{% block content %}

    <div class="container">
        <div class="card">
        <div class="card-body">
            <h5 class="card-title">学员id:{{ object.id }} | {{ object }}</h5>
             <div class="card-text row m-1" >
                 <input type="text" class="col-sm" id="inputEmail4" placeholder="请输入学员id">

                 <input type="text" class="col-sm" id="inputEmail4" placeholder="请输入学员id">

                 <input type="text" class="col-sm" id="inputEmail4" placeholder="请输入学员id">
             </div>

            <table class="table border">
                <thead>
                    <tr>
                        <th>班级ID</th>
                        <th>班级</th>
                        <th>班级类别</th>
                        <th>班级产品</th>
                        <th>负责老师</th>
                        <th>负责老师电话</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                <tbody>
                {% for bj in banji %}
                    <tr>
                    <th>{{ bj.id }}</th>
                        <th>{{ bj.banji_leibie }}</th>
                    <th>{{ bj.name }}</th>
                    <th>
                        {% for chanpin  in bj.banji_chanpin.all %}
                        {{ chanpin }}<br>
                        {% endfor %}

                    </th>
                      <th>
                        {% for leader  in bj.banji_leader.all %}
                        {{ leader }}<br>
                        {% endfor %}
                      </th>
                        <th>{{ bj.banji_leader_tel }}</th>

                    <th><a class="btn btn-primary" href="{% url 'xueyuan_jinban_banji_add' xueyuan_id=object.id jinban_id=bj.id %}">添加</a></th>
                    </tr>
                {% endfor %}
                </tbody>
            </table>








        </div>
</div>
    </div>
{% include 'messages.html' %}
{% endblock %}
